import os
import sys

BASC=os.path.dirname(__file__)
if getattr(sys, 'frozen', False):
        BASC = os.path.dirname(sys.executable)
        # cca=sys.executable
elif __file__:
        BASC = os.path.dirname(__file__)